package com.landleaf.smarthome.net.mqtt.bean;

/**
 * When I wrote this, only God and I understood what I was doing
 * Now, God only knows
 * Created by 海航
 * 2020/9/27
 * 功能描述:
 */
public class MqttPayloadModel<T> {
    /**
     * data : [{"code":"switch","value":"on"}]
     * "code":200,
     * "message":"success"
     *
     */


    private int code;
    private String message;
    private MqttDataModel<T> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public MqttDataModel<T> getData() {
        return data;
    }

    public void setData(MqttDataModel<T> data) {
        this.data = data;
    }
}
